import type { App, Component, DefineComponent } from "vue";

export function installComponent(component: DefineComponent | Component) {
  // @ts-ignore
  component.install = function (app: App) {
    app.component(component.name!, component)
  }
}